package basic.kotlin.function

/**
 * 跳过continue 和 跳出break 循环
 */
class Student{
    fun isNotClothedProperly(): Boolean{
        return false
    }
}

fun main(args: Array<String>) {
    val students = ArrayList<Student>()
    val you = Student()
    for (student in students){
        if(student == you) continue
        if(student.isNotClothedProperly()){
            break
        }
    }
}